
<div class="Breadcrumb">
	  <div class="Breadcrumb-i">您当前所在的位置：<span><a href="<?php echo base_url($this->_site_path.'/operations');?>">权限信息</a></span>&nbsp;>&nbsp;<span class="orange"><?php echo isset($operations_data['operation_id'])?'修改':'添加';?></span> </div>               <div class="Breadcrumb-div">
       	   <ul>
           	   <li class="Breadcrumb-tj"><a href="<?php echo base_url( $this->_site_path.'/operations/add' );?>" >添加</a></li>
           	   <li class="Breadcrumb-lb"><a href="<?php echo base_url( $this->_site_path.'/operations' );?>" >列表</a></li>
           </ul>
        </div>
</div>
<div class="box box-headtitle box-radius">
	<?php if ( $is_edit == TRUE ) {?>
	<h4 class="title">权限信息修改</h4>
	<?php } else {?>
	<h4 class="title">权限信息添加</h4>
	<?php }?> 
<?php get_messagebox();// 获取提示框 ?>
	<form method="post">	
		<div class="control-group">
			<label class="control-label" for="operations_type_id">权限类别</label>
			<div class="controls">
				<?php
				$js = 'id="operations_type_id"';
				if ( $is_edit == FALSE ) {
				    	$first = "--请选择--";
				    	echo form_dropdown( 'operations_type_id', $operationtypes, isset( $operations_data['operations_type_id'] ) ? $operations_data['operations_type_id'] : '', $js ,$first );
				}else{
					echo form_dropdown( 'operations_type_id', $operationtypes, isset( $operations_data['operations_type_id'] ) ? $operations_data['operations_type_id'] : '', $js );
				}
				
				
				?>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="operation_name">权限名称</label>
			<div class="controls">
				<input type="text" name="operation_name" id="operation_name" placeholder="" value="<?php echo isset($operations_data['operation_name'] ) ? $operations_data['operation_name'] : ''; ?>">
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="module">模块</label>
			<div class="controls">
				<input type="text" name="module" id="module" placeholder="" value="<?php echo isset($operations_data['module'] ) ? $operations_data['module'] : ''; ?>">
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="action">动作</label>
			<div class="controls">
				<input type="text" name="action" id="action" placeholder="" value="<?php echo isset($operations_data['action'] ) ? $operations_data['action'] : ''; ?>">
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="remark">备注</label>
			<div class="controls">
				<input type="text" name="remark" id="remark" placeholder="" value="<?php echo isset($operations_data['remark'] ) ? $operations_data['remark'] : ''; ?>">
			</div>
		</div>
		
		<div class="control-group control-group-submit">
			<?php if ( $is_edit == TRUE ) {?>
				<button type="submit" class="btn  btn-blue btn-left">修改</button>
			<?php } else {?>
				<button type="submit" class="btn  btn-blue btn-left">添加</button>
			<?php }?> 
			<button type="reset" class="btn  btn-blue btn-left">重置</button>
		</div>
		<input type="hidden" name="is_submit" value="1">
		<input type="hidden" name="operation_id" id="operation_id"  value="<?php echo isset($operations_data['operation_id'] ) ? $operations_data['operation_id'] : ''; ?>">
		<!--__TOKEN__-->
	</form>
</div>
